<div id="subnav">
    <ul id="subnavlist">
        <?php
        foreach($data['categories'] as $category){
            echo '<li id="nav_sub_'.$category['id'].'"><a href="/tin-tuc/'.$category['slug'].'/">'.$category['title'].'</a></li>';
        }
        ?>
    </ul>
</div>